package com.px.web.controller.business;

import com.px.business.service.IEvaluationResultService;
import com.px.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/evaluation/result")
public class EvaluationResultController {
    @Autowired
    private IEvaluationResultService evaluationResultService;

    @GetMapping(value = "/get/{evaluationApplicationId}")
    public AjaxResult getPaperAnswersList(@PathVariable("evaluationApplicationId") Long evaluationApplicationId) {
        return AjaxResult.success(evaluationResultService.selectResult(evaluationApplicationId));
    }
}
